<?php

    @$userName=$_REQUEST['userName'];  
    @$pwd=$_REQUEST['pwd'];

    $result=['success'=>false,'msg'=>'账号或密码不正确！'];
    
    if($userName=="admin"&&$pwd=="admin"){
        session_start();
        $_SESSION['isLogin']=true;
        $result=['success'=>true,'msg'=>'ok'];
        echo json_encode($result);
        exit;
    }
    
    echo json_encode($result);

?>